<div id="content" class="pages-hotels-4-1">
    <!-- Begin slideshow -->
    <?php include TEMPLATEPATH.'/views/hotel/view-page-hotel-intro.php';?>
    
    <!-- End slideshow -->   
    
    <?php include TEMPLATEPATH.'/views/hotel/view-search-hotel-form.php';?>                
                 
   <div class="tabs-2">
        <span class="title">POPULAR HOTELS</span>
          	<div class="side-danh-muc-top">
            <?php //require_once TEMPLATEPATH.'/views/menu/view-tab-tour.php';
                    $cat_id = get_query_var('cat'); 
                    $args = array('title_li'  => '','orderby' => 'id','taxonomy' => 'category','exclude'	=> array(1),'hide_empty' => 0,'hierarchical'  => true,'depth'  => 1);                      	 	
                    $categories = get_categories($args);	
            ?>
        		<ul id="countrytabs-2" class="shadetabs">
                 <?
                                $tamp = 1;
                                foreach($categories as $value)
                                {
                                    if($cat_id==$value->term_id)
                                    {
                                     ?>
                                         <li> <a class="selected" href="<?php echo get_category_link($value->term_id);?>" ><? echo get_tab_name($value->name);?></a></li>
                                     <?    
                                    }   
                                    else
                                    {
                                     ?>
                                         <li> <a  href="<?php echo get_category_link($value->term_id);?>" ><? echo get_tab_name($value->name);?></a></li>
                                     <?   
                                    }
                                 $tamp++;
                                }
                                ?>                                		                     
                </ul>
        	</div>
      <div id="content" class="page-searchresults">
	   <div class="content-box-1">
		<span class="top-tabs-2"></span>
       <!-- <h1 class="label-content-box-1-top">Search Results</h1> -->
       <?php
        ## process tour
        $cat_slug = get_category($cat_id);        
        $html = null;                    									
        //echo $term;
        $term = $cat_slug->slug;
	    $num_post	= 18;
	    $post_type	= 'post';
	    $taxonomy	= 'category';
	    $field		= 'slug';				    
	    $metakey	= $wpdb->prefix.'display';
	    $metavalue  = 'display';
	    $hotels = db_query_posts_in_terms_child_nopage($num_post, $post_type, $taxonomy, $field, $term, $metakey, $metavalue);
	    query_posts($hotels); 
	    $html.='<ul>';                	    
	    require_once TEMPLATEPATH.'/views/hotel/loop-hotel.php';                         
	 	$html.='</ul>';     
	 	echo $html;  
       ?>                   
       <div class="paging">
            <?php bt_paginate();?>
		</div>
    </div>
    <?php include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
</div>   
   </div>
</div>